package com.yztstudy.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yztstudy.entity.Address;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 地址接收的参数
 */

@Data
public class AddressParam {

    @NotNull
    @JsonProperty("user_id")
    private Integer userId; // 用户主键

    private Address add; // 地址对象
}
